package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @description: 市属企业工资总额本部职工明细表
 * @author: gangan
 * @create: 2020-05-27 19:09
 */
@Data
@TableName("pf_salary_detail")
@EqualsAndHashCode(callSuper = true)
public class SalaryDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long baseSalaryDetailId;

    /**
     * 是否企业负责人 1否2是
     */
    private Integer isLeader;

    /**
     * 部门
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long departmentNameId;

    /**
     * 员工档案id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long staffFilesId;

    /**
     * 导入用 证件号
     */
    @TableField(exist = false)
    private String staffFilesCode;

    /**
     * 员工姓名
     */
    private String staffName;

    /**
     * 职务
     */
    private String jobNameId;

    /**
     * 职级
     */
    private String rankId;

    /**
     * 是否中层 1否2是
     */
    private Integer isMiddle;

    /**
     * 上年薪酬实发数
     */
    @TableField(value = "last_year_salary",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal lastYearSalary;

    /**
     * 上年中层薪酬实发数
     */
    @TableField(value = "last_year_middle_salary",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal lastYearMiddleSalary;

    /**
     * 本年薪酬实发数
     */
    @TableField(value = "year_salary",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yearSalary;

    /**
     * 本年中层薪酬实发数
     */
    @TableField(value = "year_middle_salary",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal yearMiddleSalary;


//    /**
//     * 本月份发放数
//     */
//    @TableField(value = "month_salary",updateStrategy = FieldStrategy.IGNORED)
//    private BigDecimal monthSalary;
//
//    /**
//     * 其中: 中层发放数
//     */
//    @TableField(value = "middle_month_salary",updateStrategy = FieldStrategy.IGNORED)
//    private BigDecimal middleMonthSalary;

    /**
     * 平均人数
     */
    @TableField(value = "average_number",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal averageNumber;

    /**
     * 其中: 中层人数
     */
    @TableField(value = "middle_average_number",updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal middleAverageNumber;


//    /**
//     * 其中: 上年薪酬清算发放数
//     */
//    @TableField(value = "last_compensation_settlement_amount",updateStrategy = FieldStrategy.IGNORED)
//    private BigDecimal lastCompensationSettlementAmount;
//
//    /**
//     * 其中: 任期激励发放数
//     */
//    @TableField(value = "incentive_payments_amount",updateStrategy = FieldStrategy.IGNORED)
//    private BigDecimal incentivePaymentsAmount;


    /**
     * 变动情况
     */
    private String changeCondition;

    /**
     * 是否变动
     */
    private Integer isChange;
}
